//
//  ESTClueOrSellDataCell.m
//  ESTSCRMAPP
//
//  Created by 李贤立 on 2018/11/1.
//  Copyright © 2018年 Capfer. All rights reserved.
//

#import "ESTClueOrSellDataCell.h"

@interface ESTClueOrSellDataCell ()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@end

@implementation ESTClueOrSellDataCell
+ (instancetype)creatClueOrSellDataCell:(UITableView *)tableView {
    ESTClueOrSellDataCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ESTClueOrSellDataCell"];
    if (cell == nil) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"ESTClueOrSellDataCell" owner:nil options:nil].lastObject;
    }
    return cell;
}
- (void)setIconName:(NSString *)iconName {
    _iconName = iconName;
    self.iconView.image = [UIImage imageNamed:iconName];
}
- (void)setTitle:(NSString *)title {
    _title = title;
    self.titleLabel.text = title;
}
@end
